<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<link rel="stylesheet" href="static/css/edit_dialog.css">
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />
		
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="static/css/datepicker.css" /><!-- 日期框 -->
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		
<script type="text/javascript">
	
	
	//保存
	function save(){
			if($("#AL_NAME").val()==""){
			$("#AL_NAME").tips({
				side:3,
	            msg:'请输入公司名称',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_NAME").focus();
			return false;
		}
		if($("#AL_ENAME").val()==""){
			$("#AL_ENAME").tips({
				side:3,
	            msg:'请输入公司英文名',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_ENAME").focus();
			return false;
		}
		if($("#AL_CODE").val()==""){
			$("#AL_CODE").tips({
				side:3,
	            msg:'请输入公司编码',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_CODE").focus();
			return false;
		}
		if($("#AL_RATE").val()==""){
			$("#AL_RATE").tips({
				side:3,
	            msg:'请输入公司手续费率',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_RATE").focus();
			return false;
		}
		if($("#AL_PAY").val()==""){
			$("#AL_PAY").tips({
				side:3,
	            msg:'请输入公司入网费用',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_PAY").focus();
			return false;
		}
		if($("#AL_CONTACT").val()==""){
			$("#AL_CONTACT").tips({
				side:3,
	            msg:'请输入业务联系人',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_CONTACT").focus();
			return false;
		}
		if($("#AL_CONTACTTEL").val()==""){
			$("#AL_CONTACTTEL").tips({
				side:3,
	            msg:'请输入业务联系电话',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_CONTACTTEL").focus();
			return false;
		}
		if($("#AL_NETINDATE").val()==""){
			$("#AL_NETINDATE").tips({
				side:3,
	            msg:'请输入入网日期',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_NETINDATE").focus();
			return false;
		}
		if($("#AL_CONTRACTNO").val()==""){
			$("#AL_CONTRACTNO").tips({
				side:3,
	            msg:'请输入合同号',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_CONTRACTNO").focus();
			return false;
		}
		if($("#AL_DISCRIP").val()==""){
			$("#AL_DISCRIP").tips({
				side:3,
	            msg:'请输入al_discrip',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_DISCRIP").focus();
			return false;
		}
		$("#Form").submit();
		$("#zhongxin").hide();
		$("#zhongxin2").show();
	}
	
</script>
	</head>
<body>
	<form action="airlineinfo/${msg }.do" name="Form" id="Form" method="post">
		<input type="hidden" name="AIRLINEINFO_ID" id="AIRLINEINFO_ID" value="${pd.AIRLINEINFO_ID}"/>
		<div id="zhongxin">
		<table id="table_report" class="table table-striped table-bordered addTable">
			<tr>
				<td >公司名称:</td>
				<td><input type="text" name="AL_NAME" id="AL_NAME" value="${pd.AL_NAME}" maxlength="32" placeholder="这里输入公司名称" title="公司名称"/></td>
			</tr>
			<tr>
				<td >公司英文名:</td>
				<td><input type="text" name="AL_ENAME" id="AL_ENAME" value="${pd.AL_ENAME}" maxlength="32" placeholder="这里输入公司英文名" title="公司英文名"/></td>
			</tr>
			<tr>
				<td>公司编码:</td>
				<td><input type="text" name="AL_CODE" id="AL_CODE" value="${pd.AL_CODE}" maxlength="32" placeholder="这里输入公司编码" title="公司编码"/></td>
			</tr>
			<tr>
				<td >公司手续费率:</td>
				<td>
					<div style="position: relative">
					<input class="" type="text" name="AL_RATE" id="AL_RATE" value="${pd.AL_RATE}" maxlength="32" placeholder="这里输入公司手续费率" title="公司手续费率"/>
					<i style="position: absolute;right: 3px;padding: 5px">%</i>
		</div>
				</td>
		</tr>
			<tr>
				<td >公司入网费用:</td>
				<td><input type="text" name="AL_PAY" id="AL_PAY" value="${pd.AL_PAY}" maxlength="32" placeholder="这里输入公司入网费用" title="公司入网费用"/></td>
			</tr>
			<tr>
				<td >业务联系人:</td>
				<td><input type="text" name="AL_CONTACT" id="AL_CONTACT" value="${pd.AL_CONTACT}" maxlength="32" placeholder="这里输入业务联系人" title="业务联系人"/></td>
			</tr>
			<tr>
				<td >业务联系电话:</td>
				<td><input type="text" name="AL_CONTACTTEL" id="AL_CONTACTTEL" value="${pd.AL_CONTACTTEL}" maxlength="32" placeholder="这里输入业务联系电话" title="业务联系电话"/></td>
			</tr>
			<tr>
				<td >入网日期:</td>
				<td><input class="date-picker" name="AL_NETINDATE" id="AL_NETINDATE" value="${pd.AL_NETINDATE}" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" placeholder="入网时间"/></td>
			</tr>
			<tr>
				<td >合同号:</td>
				<td><input type="text" name="AL_CONTRACTNO" id="AL_CONTRACTNO" value="${pd.AL_CONTRACTNO}" maxlength="32" placeholder="这里输入合同号" title="合同号"/></td>
			</tr>
			<tr>
				<td >备注信息:</td>
				<td><input type="text" name="AL_DISCRIP" id="AL_DISCRIP" value="${pd.AL_DISCRIP}" maxlength="32" placeholder="这里输入备注" title="al_discrip"/></td>
			</tr>
			<tr>
				<td  colspan="10" style="text-align: center">
					<a class="btn btn-mini btn-primary" onclick="save();">保存</a>
					<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
				</td>
			</tr>
		</table>
		</div>
		
		<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
		
	</form>
	
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="static/js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<script type="text/javascript">
		$(top.hangge());
		$(function() {
			
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			
			//日期框
			$('.date-picker').datepicker({
                autoclose: true
			});
			
		});
		
		</script>
</body>
</html>